#!/usr/bin/groovy 

import groovy.json.JsonSlurper


def header=" --header PRIVATE-TOKEN:azR3q1ysQsCx6R3Evyua ";
def urlPrefix="http://git.qilu-dev.com/api/v3";
def urlSuffix="/projects/owned";

def cmd="curl " + header + urlPrefix + urlSuffix;

Process  progam = ['/bin/bash','-c',cmd].execute();

def nameList = new JsonSlurper().parseText(progam.text).name  

return nameList 
